package com.huangkailong.learning.datastructure.common;

import java.util.Objects;

/**
 * @author huangkl
 * @since 1.0.0
 */
public class Assert {
    private Assert(){}

    public static void isNotNull(Object obj, String mgs){
        if(Objects.isNull(obj)){
            throw new IllegalArgumentException(mgs);
        }
    }
}
